package com.minelx.scriptbuilder.script.attribute.function;

import com.minelx.scriptbuilder.script.attribute.value.IAttribute;

public interface Function extends IAttribute {
	@Override
	IAttribute execute(Params params);

	@Override
	default String asString() {
		return "function";
	}

	static Function doNothing() {
		return params -> IAttribute.nil();
	}

	static Function returns(IAttribute value) {
		return params -> value;
	}
}
